<%@page language="java" contentType="text/html; charset=UTF-8" %>
<%@page import="btsm.bean.sqlwork"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<%
        sqlwork mypage = new sqlwork("geographicalenv", "");
%>
<%String titlename="新建基站";%>
<HTML>
<HEAD>
    <TITLE>基站地理环境管理</TITLE>
    <META http-equiv=Content-Type content="text/html; charset=UTF-8">
    <LINK href="Admin_Style.css" type=text/css rel=stylesheet>

</HEAD>

<BODY leftMargin=2 topMargin=0 marginheight="0" marginwidth="0" style="overflow:hidden">

<script language="javascript" src="jscheck.js">
</script>
<script>
    <!--
    function tst(obj0,obj1,obj2){
        obj0.style.border="1 "+obj1+" solid";
        obj0.style.background=obj2;
    }
    //-->
	function btnReturn(){
	     window.open("/btsm/nnlist_graph.jsp","_self");
	}
</script>
<SCRIPT LANGUAGE="JavaScript">
    <!--
    function textCounter(field, maxlimit) {
        if (field.value.length > maxlimit)
            field.value = field.value.substring(0, maxlimit);
    }
    //-->
</SCRIPT>

<TABLE cellSpacing="0" align="center" cellPadding="0" width="100%" border=0>
    <TBODY>
        <TR>
            <TD>
                <TABLE class=border cellSpacing=1 cellPadding=2 width="100%" align="center" border="0">
                    <FORM name="Jz_myform" action="ser_graph" method="post">
                        <!--添加数据表单开始cs.jsp-->
                        <TBODY id=Tabs>
                            <TR class=tdbg>
                                <TD class=tdbg5 width=120 height="26">基站编号：</TD>
                                <TD width="334" height="26">
                                    <input type="text" name="T1" id="sjidxid" size="20" maxlength="12" onBlur="checkQuote(this.value,this)">
                                </TD>
                                <TD class=tdbg5 colspan="2" height="26">基站名称：</TD>
                                <TD height="26">
                                    <input type="text" name="T1" size="20" maxlength="20" onBlur="checkQuote(this.value,this)">
                                </TD>
                            </TR>
                            <TR class=tdbg>
                                <TD class=tdbg5 height="26">基站位置区域：</TD>
                                <TD height="26">
                                    <select name="T1" size="1" id="T1" style="width: 140; height: 23" width="771">

                                        <option selected>位置区域</option>
                                        <%
        String[] rs1 = mypage.sclist("01");
        for (int i = 0; i < rs1.length; i++) {
                                        %>
                                        <option value="<%=rs1[i]%>"><%=rs1[i]%></option>
                                        <%
        } 
                                        %>

                                    </select>
                                </TD>
                                <TD class=tdbg5 colspan="2" height="26">基站地形：</TD>
                                <TD height="26">
                                    <select name="T1" size="1" id="T1" style="width: 140; height: 23" width="771">

                                        <option selected>地形</option>
                                        <%
        String[] rs2 = mypage.sclist("02");
        for (int i = 0; i < rs2.length; i++) {
                                        %>
                                        <option value="<%=rs2[i]%>"><%=rs2[i]%></option>
                                        <%
        }
                                        %>
                                    </select>
                                </TD>
                            </TR>
                            <tr class=tdbg>
                                <TD class=tdbg5 height="26">经度：</TD>
                                <TD height="26">

                                    <input type="text" name="T1" size="20" maxlength="11" onBlur="chk(this.value,this)" value="-1.000000">

                                </TD>
                                <TD class=tdbg5 colspan="2" height="26">纬度：</TD>
                                <TD height="26">
                                    <input type="text" name="T1" size="20" maxlength="11" onBlur="chk(this.value,this)" value="-1.000000">
                                </TD>
                            </tr>
                            <tr class=tdbg>
                                <TD class=tdbg5 width=120 height="18">基站搬迁记录：</TD>
                                <TD height="18" colspan="4">
                                    <input type="text" name="T1" size="60" maxlength="24" onBlur="checks(this.value,this)">
                                </TD>
                            </tr>
                            <tr class=tdbg>
                                
                                <TD class=tdbg5 width="129" height="18">所属地区：</TD>
                                <TD colspan="4" height="18">
                                    <select name="T1" size="1" id="T1" style="width: 140; height: 23" width="771">
                                        <option selected>地市县</option>
                                        <%
        String[] rs = mypage.scdqxslist();
        for (int i = 0; i < rs.length; i++) {
                                        %>
                                        <option value="<%=rs[i]%>"><%=rs[i]%></option>
                                        <%
        }
                                        %>
                                    </select>
                                </TD>
                            </tr>
                            <TR class=tdbg>
                                <TD class=tdbg5 width=120 height="18">基站级别：</TD>
                                <TD width="334" height="18"><select name="T1" size="1" id="T1" style="width: 140; height: 23" width="771">
                  <option selected value="0">0</option>
				  <option value="1">1</option>
                  <option value="2">2</option>
				  <option value="3">3</option>
				  <option value="4">4</option>
				  <option value="5">5</option>
				  <option value="6">6</option>
				  <option value="7">7</option>
				  <option value="8">8</option>
				  <option value="9">9</option>
	              </select></TD>
                                <TD class=tdbg5 height="18">有效工作半径（米）：</TD>
                                <TD colspan="2" height="18"><input type="text" name="T1" size="20" onBlur="chk(this.value,this)" value="-1">
                                </TD>
                            </TR>

                            <input type="hidden" name="T1" value="">
                            <TR class=tdbg>
                                <TD class=tdbg5 width=120 height="19">备注：</TD>
                                <TD colspan="4" height="19">
                                    <textarea rows="7" name="T1" id="T2" cols="60" class=text2d onPropertyChange="textCounter(T2,100)" onBlur="checks(this.value,this)"></textarea>
                                </TD>
                            </TR>
                            <TR class=tdbg>
                                <TD class=tdbg5 height="51" colspan="5">
                                    <p align="center">
                                    <%
            String jspName = request.getRequestURI();
            jspName = jspName.substring(jspName.lastIndexOf("/") + 1);
                                    %>

                      <input type="hidden" name="filesnames" value="<%=jspName%>">
					  <input type="hidden" name="seraction" value="seradd">
					  
                                    <input type="button" value="提交数据" name="JzB1" style="width: 72; height: 25" onclick="invalid()" class=tx_button onMouseOver="tst(this,'blue','#ffffff')" onMouseOut="tst(this,'black','#e8e7fe')">
                                    &nbsp;&nbsp;&nbsp;&nbsp;
                                    <input type="reset" value="重置" name="JzB2" style="width: 72; height: 25" class=tx_button onMouseOver="tst(this,'blue','#ffffff')" onMouseOut="tst(this,'black','#e8e7fe')">
                                </TD>
                            </TR>
                        </TBODY>
                    </FORM>
        <% 
		mypage.dbConClose();
        %>
                </TABLE>
</TD></TR></TBODY></TABLE>

<script type="text/javascript">	
function invalid()
{
	
	var btsCode = document.getElementById("sjidxid").value
	if(btsCode == "")
	{
		alert("请输入基站编号后再提交."); 
		btsCode = document.getElementById("sjidxid").focus();
	}else 
		document.getElementById("Jz_myform").submit();
}

</script>	

</BODY></HTML>